PATH  Mac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Icon Services and Utilities
>
Obtaining and Using Icons With Icon Services

   

Drawing Icons

Icon Services provides two basic drawing functions. For the task of drawing an icon directly to the screen, use the function PlotIconRef. If you need to convert icon data into a QuickDraw region, use the function IconRefToRgn.

Note

The introduction of deep masks means that you cannot simply draw over an icon and assume the previous icon will be erased. Call the function IconRefToRgn to determine the area occupied by the current icon, erase that area, then draw the new icon.


© 1999 Apple Computer, Inc. – (Last Updated 03 Dec 99)